package com.lf;

import com.lf.service.Person;
import com.lf.service.impl.Student;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * Created by LF on 2017/5/2.
 */
@Configuration
@ComponentScan
public class Config {

    @Bean
    @Qualifier("student2")
    public Person student() {
        return new Student();
    }
}
